import request from '@/utils/request'

// 查询study列表
export function listStudy(query) {
  return request({
    url: '/teacher/study/list',
    method: 'get',
    params: query
  })
}

// 查询study详细
export function getStudy(studyId) {
  return request({
    url: '/teacher/study/' + studyId,
    method: 'get'
  })
}

// 新增study
export function addStudy(data) {
  return request({
    url: '/teacher/study/add',
    method: 'post',
    data: data
  })
}

// 修改study
export function updateStudy(data) {
  return request({
    url: '/teacher/study/update',
    method: 'post',
    data: data
  })
}

// 删除study
export function delStudy(studyId) {
  return request({
    url: '/teacher/study/' + studyId,
    method: 'post'
  })
}
